<?php if (is_array($this->navigation)) { ?><div class="f-navigation">
<?php
	echo "<ul>\r\n";
	$last_item = count($this->navigation) - 1;
	$idx = 0;
	$page = $this->url($this->request);
	foreach ($this->navigation as $item) {
		// if (is_array($label)) {
		// 	// TODO: minden mas johet ide, ha bonyolodik a dolog :)
		// }
		$url = $this->url($item[0]);
		echo '<li class="f-navigation-item f-'.($idx % 2 ? 'odd' : 'even');
		if ($idx == 0) echo ' f-first';
		if ($idx == $last_item) echo ' f-last';
		if ($url == $page) echo ' f-selected';
		echo '"><a href="'.$url.
			'"><span>'.$item[1]."</span></a></li>\r\n";
		$idx++;
	}
	echo "</ul>\r\n";
?>
</div>
<?php } ?>
